#ifndef STLIMPORTER_H
#define STLIMPORTER_H
#include <string>
#include <vector>

class Vector3D;

class StlImporter
{
public:
    StlImporter() = default;

    bool loadStl(std::string path, float ratio = 1.0);//ratio缩放系数
    bool loadAscllStl(std::string path, float ratio);
    bool loadBinaryStl(std::string path, float ratio);

    int vertexPos(Vector3D point);

    std::vector<Vector3D> getVertices() const;
    std::vector<Vector3D> getNormals() const;
    std::vector<int> getIndices() const;

private:
    std::vector<Vector3D> m_Vertices = {};
    std::vector<Vector3D> m_Normals = {};
    std::vector<int> m_Indices = {};
};

#endif // STLIMPORTER_H
